<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <LINK rel="Bookmark" href="/favicon.ico">
    <LINK rel="Shortcut Icon" href="/favicon.ico"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/Public/static/html5.js"></script>
    <script type="text/javascript" src="/Public/static/respond.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/PIE_IE678.js"></script>
    <![endif]-->
    <link href="/Public/Admin/css/manager/H-ui.min.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/manager/H-ui.admin.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/skin/default/skin.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/manager/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/common.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/application.css" rel="stylesheet" type="text/css"/>
    <title>后台</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script type="text/javascript" src="/Public/static/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/Public/static/layer/layer.js"></script>
    <script type="application/javascript" src="/Public/static/form/jquery.validate.min.js"></script>
    <script type="application/javascript" src="/Public/static/form/localization/messages_zh.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/H-ui.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/H-ui.admin.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/jquery.raty.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/timer.js"></script>
    <script type="text/javascript">
        $(function () {
            //搜索功能
            $("#search_layer").click(function () {
                layer.closeAll();
                layer.open({
                    type: 2,
                    title: 'id搜索工具',
                    shadeClose: true,
                    shade: false,
                    maxmin: true, //开启最大化最小化按钮
                    area: ['650px', '550px'],
                    content: '<?php echo U("/Admin/Doctor/NRDoctor/search");?>'
                });
            });
        })
    </script>
</head>

<div class="pd-20">
    <div class="tab-wrap">
        <ul class="tab-nav nav">
            <li class="current"><a href="javascript:;">基本设置</a></li>
            <?php if(isset($actions['SYSTEMCONFIG'])): ?><li>
                    <a href="<?php $str = $Think.ADMIN_PATH_NAME.$actions['SYSTEMCONFIG']['url'];echo U($str,array('key'=>$actions['SYSTEMCONFIG']['key'],'group_name'=>I('group_name'),'group_id'=>I('group_id'))) ?>">系统设置</a>
                </li><?php endif; ?>
        </ul>
        <div class="tab-content">
            <form action="<?php echo U('',array('key'=>I('key')));?>" method="post" class="form form-horizontal" id="saveBaseConfigForm">
                <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$config): $mod = ($i % 2 );++$i;?><div class="row cl">
                        <label class="form-label col-3"><?php echo ($config["title"]); ?></label>

                        <div class="formControls col-5">
                            <?php switch($config["type"]): case "0": ?><input type="text" class="input-text" name="config[<?php echo ($config["name"]); ?>]"
                                           value="<?php echo ($config["value"]); ?>" maxlength="2000"><?php break;?>
                                <?php case "1": ?><input type="text" class="input-text" name="config[<?php echo ($config["name"]); ?>]"
                                           value="<?php echo ($config["value"]); ?>"  maxlength="2000"><?php break;?>
                                <?php case "2": ?><textarea name="config[<?php echo ($config["name"]); ?>]" class="textarea"  maxlength="2000"><?php echo ($config["value"]); ?></textarea><?php break;?>
                                <?php case "3": ?><textarea name="config[<?php echo ($config["name"]); ?>]" class="textarea"  maxlength="2000"><?php echo ($config["value"]); ?></textarea><?php break;?>
                                <?php case "4": ?><select name="config[<?php echo ($config["name"]); ?>]">
                                        <?php $_result=parse_config_attr($config['extra']);if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>"
                                            <?php if(($config["value"]) == $key): ?>selected<?php endif; ?>
                                            ><?php echo ($vo); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </select><?php break; endswitch;?>

                        </div>
                        <div class="col-4">(<?php echo ($config["remark"]); ?>)</div>

                    </div><?php endforeach; endif; else: echo "" ;endif; ?>
                <div class="row cl">
                    <div class="col-9 col-offset-3">
                        <input type="submit" class="btn btn-primary radius" value="确 定"/>
                        <button class="btn btn-warning radius" onclick="history.back(-1);return false;">返 回
                        </button>
                    </div>
                </div>
        </div>
        </form>
    </div>
</div>
</div>
<link rel="stylesheet" type="text/css" href="/Public/Admin/css/tab.css" media="all">
<script type="application/javascript" src="/Public/Admin/js/System/system.js"></script>